<style>
.li_start {width:100px;float:left;}
.li_end {float:left;}
</style>
<h2>Setting up a Windows Server with PHP</h2>
<h3>Install PHP</h3>
<p>PHP have a windows installation executable available at their <a href="http://windows.php.net/download/">download page</a>. This should be downloaded and run on the server. 
The latest non-thread-safe version (5.3.6) has been used on the dsquared development server.</p>
<h3>Set up IIS7</h3>
<p>PHP will now be working on the computer (and is normally installed in C:/Program Files/PHP). The next stage is to inform IIS7 about PHP.</p>

<p>
Open up the Internet Information Services Manager and add a new Module Mapping:
<ul>
<li><div class=li_start>Request path:</div><div class=li_end>*.php</div></li>
<li><div class=li_start>Module:</div><div class=li_end>FastCgiModule</div></li>
<li><div class=li_start>Executable:</div> <div class=li_end>C:/Program Files/PHP/php-cgi.exe</div></li>
<li><div class=li_start>Name:</div>  <div class=li_end>PHPviaFastCGI</div></li>
</ul>
IIS7 and PHP should now play happily together.
</p>
<h3>Testing the Server</h3>
<p>At this point the server is ready for testing and this is done by creating a PHP file:</p>
<pre>&lt;?php 
phpinfo(); 
?&gt;</pre>
<p>This should be saved into the server's document folder as "phpinfo.php" and can then be access via a web browser. If everything is working correctly then the page should show the configuration settings for the server.</p>
<h3>Allow Redirects</h3>
<p>The final step is to all the <i>Rewrite module</i>. This enables to website to use once central file to handle all URL calls. 
The installer for the module is available form the <a href="http://www.microsoft.com/download/en/details.aspx?id=5747">Microsoft website</a>. </p>